﻿using AutoMapper;
using Max.PH6_2006A.LowCode.Domain;
using Max.PH6_2006A.LowCode.DTO;
using Max.PH6_2006A.LowCode.IRespository;
using Max.PH6_2006A.LowCode.IService;
using System.Data;

namespace Max.PH6_2006A.LowCode.Service
{
    public class SystemRoleService : BaseService<SystemRole, SystemRole, SystemRole>, ISystemRoleService
    {
        ISystemRoleRespository _respository;
        public SystemRoleService(ISystemRoleRespository respository, IMapper map) : base(respository, map)
        {
            _respository = respository;
        }
        public async Task<int> InsertRoleAndUserRoleAndRoleMenu(Dictionary<string, object> keyValues)
        {
            int result = await _respository.ExecuteSqlMuitple(keyValues);
            return result;
        }
    }
}
